import java.util.Scanner;
public class Square
{
     public static void main(String[]args)
     {
          int length,perimeter,area;
          Scanner scan = new Scanner (System.in);
          System.out.print("Enter the length:");
          length = scan.nextInt();
          perimeter = length * length;
          area = length * 4;
          System.out.println("perimeter:" + perimeter);
          System.out.println("area:"+area);
     }
}         

